//系统路由
const routes = [
  {
    name: "layout",
    path: "/",
    component: () =>
      import(/* webpackChunkName: "layout" */ "@/layout/index.vue"),
    redirect: "/home",
    children: [],
  },
  {
    path: "/login",
    name: "login",
    meta: { title: "登录页", routeType: "base" }, // routeType:"base" 表示路由是不在layout中的路由
    component: () =>
      import(/* webpackChunkName: "login" */ "@/views/userCenter/login.vue"),
  },
  {
    path: "/:pathMatch(.*)*", // 将匹配所有内容并将其放在 `$route.params.pathMatch` 下
    name: "NotFound",
    meta: { title: "404", routeType: "base" },
    component: () =>
      import(/* webpackChunkName: "login" */ "@/views/userCenter/404.vue"),
  },
];

export default routes;
